package Practica5.Flex;

import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

import junit.framework.TestCase;

public class testBloqueA extends TestCase {

	public void test1() throws RecognitionException
  {
		try {
			String saltolinea = "\r\n";
	    	String test = "dÇgic [0-9]"+ saltolinea + "letter [A-Za-z]" + saltolinea +
	                      "%{" + saltolinea + "int count;" + saltolinea + "int integer;" +
	    			      saltolinea + "%}"; 
	    	CharStream input = new ANTLRStringStream(test);
			Analex lexer = new Analex(input);
			CommonTokenStream tokens = new CommonTokenStream(lexer);
			Anasint parser = new Anasint(tokens);
			 boolean A = false;
			parser.bloqueA();
		} catch (Exception e) {
			fail();
		}
  }
}
